/*
 * @Descripttion:
 * @version:
 * @Author: zhangjian
 * @Date: 2022-05-25 11:07:49
 * @LastEditors: zhangjian
 * @LastEditTime: 2022-06-22 17:34:38
 */
import http from '@/utils/httpRequest'
export default {

    /** 图片列表  **/
  ossList (param) {
    return http.get(http.adornUrl('sys/oss/list'), { params: param })
  },
    /** 得到图片分组  无参 **/
  grpList (param) {
    return http.get(http.adornUrl('sys/upload/grpList'), { params: param })
  },
    /** 删除分组及其下图下 **/
  grpDel (id) {
    return http.post(http.adornUrl(`sys/upload/grpDel`), id)
  },

    /** 3、新增或保存分组 **/
  grpUpdate (param) {
    return http.post(http.adornUrl('sys/upload/grpUpdate'), param)
  },
    /** 3、4、得到某分组下的图片 **/

  getImgList (param) {
    return http.post(http.adornUrl('sys/upload/getImgList'), param)
  },
    /** 批量删除图 **/
  delFileByIds (param) {
    return http.post(http.adornUrl('sys/upload/delFileByIds'), param)
  },
    /** 移动图片组 **/
  moveGrpIds (param) {
    return http.post(http.adornUrl('sys/upload/moveGrpIds'), param)
  },
    /** 数据合计 */
  summationsList (param) {
    return http.get(http.adornUrl('statistical/summationsList'), { params: param })
  },
    /** 销售总额 */
  realList (param) {
    return http.get(http.adornUrl('statistical/realList'), { params: param })
  },
    /** 曲线图（近七日交易走势） */
  graphList (param) { // boutiqueMovements-->精品走势图  // retailMovements-->零售走势图
    return http.get(http.adornUrl('statistical/graphList'), { params: param })
  },
  orderDetails (param) {
    return http.post(http.adornUrl('statistical/paymentSummaryList'), param)
  },
  consignmentDetails (param) {
    return http.post(http.adornUrl('statistical/ConsignmentDetails'), param)
  },
  serviceDetails (param) {
    return http.post(http.adornUrl('statistical/paymentSummaryList'), param)
  },
  orderDetailsExport (param) {
    return http.post(http.adornUrl('statistical/orderDetailsExport'), param)
  },
  selectUserAdvice (param) {
    return http.post(http.adornUrl('sysUserAdvice/selectUserAdvice'), param)
  }

}
